local more1__bianzhen = fk.CreateSkill{
  name = "more1__bianzhen",
  tags = { Skill.Compulsory},
}
Fk:loadTranslationTable{
  ["more1__bianzhen"] = "变阵",
  [":more1__bianzhen"] = "锁定技，当你受到伤害后，若你的手牌数:不大于X，你摸X张牌;不小于x，你摸1张牌(X为你的体力上限)。然后若你的武将牌背面朝上，你翻面。",
  ["$more1__bianzhen1"] = "千里之行，必积跬步，军风蔚然，必成强军。",
  ["$more1__bianzhen2"] = "众军成城，肃风整备，其皆可以一当十。",
}

more1__bianzhen:addEffect(fk.Damaged, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(more1__bianzhen.name) 
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    if player:getHandcardNum() >= player.maxHp then
      room:drawCards(player,1,more1__bianzhen.name)
    end
    if player:getHandcardNum() <= player.maxHp then
      room:drawCards(player,player.maxHp,more1__bianzhen.name)
    end
    if not player.faceup then
      player:turnOver()
    end
  end,
})







return more1__bianzhen